<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!-- 
    v-bind
    1) 作用: 动态的给标签属性设置属性值
    2) 语法: 
       v-bind:属性名 = '表达式'
    3) 简写
       v-bind:属性名 = '表达式'  ---- :属性名="表达式"  
   -->
  <div id="app">
    <!-- <img v-bind:src="imgUrl" v-bind:title="imgTitle"> -->
    <img :src="imgUrl" :title="imgTitle">
  </div>
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        imgUrl: './imgs/10-01.png',
        imgTitle: '我是波仔呀'
      }
    })
  </script>
</body>

</html>